home *** CD-ROM | disk | FTP | other *** search
/ Aminet 33 / Aminet 33 - October 1999.iso / Aminet / comm / misc / DragonDaemon.lha / DragonDaemon-Install / Entwickler / C / dragondaemon.h next >
C/C++ Source or Header  |  1999-06-08  |  1KB  |  38 lines

  1. /* dragondaemon.h
  2. **
  3. ** $VER: dragondaemon.h 1.0 (17.5.99)
  4. ** C header file for DragonDeamon 1.0    
  5. ** Written by Kai Radewald <kai.radewald@stud.uni-hannover.de>
  6. ** DragonDeamon is © 1999 Jürgen Reinert <ac-techno@T-Online.de>
  7. */
  8.  
  9. /* misc */
  10.  
  11. #define DD_PORTNAME "DragonDaemon"
  12.  
  13. /* commands */
  14.  
  15. #define DDCMD_EXITDAEMON    0   /* Exit the DragonDaemon */
  16. #define DDCMD_GETCOUNTER    1   /* Obtain current counter value */
  17. #define DDCMD_DIALNUMBER    2   /* Dial a phone number */
  18. #define DDCMD_RESETCOUNTER  3   /* Reset counter to zero */
  19. #define DDCMD_INFO          4   /* Query information */
  20. #define DDCMD_REQUEST       5   /* Request the user */
  21. #define DDCMD_ERROR         6   /* Issue an error */
  22.  
  23. /* options */
  24.  
  25. #define DDOPT_QUIET         1
  26.  
  27. /* structures */
  28.  
  29. struct DD_Message {
  30.     struct Message dd_StdMsg;   /* Standard Exec message */
  31.     ULONG  dd_Command;          /* DragonDaemon command */
  32.     LONG   dd_Arg0;             /* First command argument */
  33.     LONG   dd_Arg1;             /* Second command argument */
  34.     ULONG  dd_Options;          /* Command options */
  35.     TEXT   dd_Result[128];      /* Result as ASCII C-string */
  36.     ULONG  dd_Return;           /* Return code */
  37. };
  38.